package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : 杨丽辉
 * @date : 2021/3/3 16:45
 * @description:
 */
@ApiModel("创作中心查询书籍详情返回JSON类")
public class AQueryBookRes {
    /**
     *主键
     * 书籍id
     * isnull 1
     */
    @ApiModelProperty(value="书籍id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String booksId;
    /**
     * 书籍名称
     * isnull 0
     */        @ApiModelProperty(value="书籍名称", position=2)
    private String bookName;
    /**
     * 作者id
     * isnull 0
     */        @ApiModelProperty(value="作者id",position=7)
    private String authorId;
    /**
     * 书籍状态：0：完结；1：连载；2：新开坑；3：弃坑（一般新插入默认为2）
     * isnull 0
     */        @ApiModelProperty(value="书籍状态：0：完结；1：连载；2：新开坑；3：弃坑（一般新插入默认为2）",position=3)
    private Integer bookStatus;
    /**
     * 书籍封面图片链接
     * isnull 0
     */        @ApiModelProperty(value="书籍封面图片链接",position=8)
    private String bookPic;
    /**
     * 书籍一级标签数组（由前端去分割）
     * isnull 0
     */        @ApiModelProperty(value="书籍一级标签数组（由前端去分割）",position=9)
    private String bookOnelabel;
    /**
     * 书籍二级标签数组（由前端去分割）
     * isnull 0
     */        @ApiModelProperty(value="书籍二级标签数组（由前端去分割）",position=11)
    private String bookTwolabel;
    /**
     * 书籍属性（0：原创；1：转载；2：基于原文学作品创作）
     * isnull 0
     */        @ApiModelProperty(value="书籍属性（0：原创；1：转载；2：基于原文学作品创作）",position=12)
    private Integer bookAttributes;
    /**
     * 书籍内容最新更新时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value="书籍内容最新更新时间",position=13)
    private LocalDateTime bookCupdateTime;
    /**
     * 书籍总字数
     * isnull 0
     */        @ApiModelProperty(value="书籍总字数",position=14)
    private Integer contentCount;
    /**
     * 最新更新的章节名称
     * isnull 0
     */        @ApiModelProperty(value="最新更新的章节名称",position=15)
    private String newChaptername;
    /**
     * 作者昵称
     * isnull 0
     */        @ApiModelProperty(value="作者昵称",position=2)
    private String authorNickname;

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Integer getBookStatus() {
        return bookStatus;
    }

    public String getBookPic() {
        return bookPic;
    }

    public void setBookPic(String bookPic) {
        this.bookPic = bookPic;
    }

    public String getBookOnelabel() {
        return bookOnelabel;
    }

    public void setBookOnelabel(String bookOnelabel) {
        this.bookOnelabel = bookOnelabel;
    }

    public String getBookTwolabel() {
        return bookTwolabel;
    }

    public void setBookTwolabel(String bookTwolabel) {
        this.bookTwolabel = bookTwolabel;
    }

    public Integer getBookAttributes() {
        return bookAttributes;
    }

    public void setBookAttributes(Integer bookAttributes) {
        this.bookAttributes = bookAttributes;
    }

    public LocalDateTime getBookCupdateTime() {
        return bookCupdateTime;
    }

    public void setBookCupdateTime(LocalDateTime bookCupdateTime) {
        this.bookCupdateTime = bookCupdateTime;
    }

    public Integer getContentCount() {
        return contentCount;
    }

    public void setContentCount(Integer contentCount) {
        this.contentCount = contentCount;
    }

    public String getBooksId() {
        return booksId;
    }

    public void setBooksId(String booksId) {
        this.booksId = booksId;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public void setBookStatus(Integer bookStatus) {
        this.bookStatus = bookStatus;
    }

    public String getNewChaptername() {
        return newChaptername;
    }

    public void setNewChaptername(String newChaptername) {
        this.newChaptername = newChaptername;
    }

    public String getAuthorNickname() {
        return authorNickname;
    }

    public void setAuthorNickname(String authorNickname) {
        this.authorNickname = authorNickname;
    }

    @Override
    public String toString() {
        return "AQueryBookRes{" +
                "booksId='" + booksId + '\'' +
                ", bookName='" + bookName + '\'' +
                ", authorId='" + authorId + '\'' +
                ", bookStatus=" + bookStatus +
                ", bookPic='" + bookPic + '\'' +
                ", bookOnelabel='" + bookOnelabel + '\'' +
                ", bookTwolabel='" + bookTwolabel + '\'' +
                ", bookAttributes=" + bookAttributes +
                ", bookCupdateTime=" + bookCupdateTime +
                ", contentCount='" + contentCount + '\'' +
                ", newChaptername='" + newChaptername + '\'' +
                ", authorNickname='" + authorNickname + '\'' +
                '}';
    }
}
